/**
 * 
 */
package com.antilia.infomaresme.pages.images;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

import com.antilia.infomaresme.data.dataobjects.Item;

/**
 * @author Ernesto
 *
 */
public class ImageCountPanel extends Panel {


	private static final long serialVersionUID = 1L;

	/**
	 * @param id
	 * @param model
	 */
	public ImageCountPanel(String id, IModel<Item> model) {
		super(id, model);
		Label images = new Label("images", model.getObject().getImageDetailsAsList().size() + " imagenes");
		add(images);
	}

}
